package com.example.test.反射;

/**
 * @author 晓果冻
 * @version 1.0
 * @date 2022/5/24 14:19
 */
public class User {
    private String name;

    private Integer age;

    public String publicName;

    public User(String name, Integer age, String publicName) {
        System.out.println("有参构造函数");
        this.name = name;
        this.age = age;
        this.publicName = publicName;
    }

    public User() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPublicName() {
        return publicName;
    }

    public void setPublicName(String publicName) {
        this.publicName = publicName;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", publicName='" + publicName + '\'' +
                '}';
    }

    private Integer sum(Integer a,Integer b){
        return a+b;
    }
}
